using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_BaseBondedManageTypeEntryMap : EntityTypeConfiguration<t_BaseBondedManageTypeEntry>
    {
        public t_BaseBondedManageTypeEntryMap()
        {
            // Primary Key
            this.HasKey(t => t.FEntryID);

            // Properties
            this.Property(t => t.FNumber)
                .IsRequired()
                .HasMaxLength(255);

            this.Property(t => t.FName)
                .IsRequired()
                .HasMaxLength(255);

            // Table & Column Mappings
            this.ToTable("t_BaseBondedManageTypeEntry");
            this.Property(t => t.FEntryID).HasColumnName("FEntryID");
            this.Property(t => t.FClassTypeID).HasColumnName("FClassTypeID");
            this.Property(t => t.FID).HasColumnName("FID");
            this.Property(t => t.FIndex).HasColumnName("FIndex");
            this.Property(t => t.FNumber).HasColumnName("FNumber");
            this.Property(t => t.FName).HasColumnName("FName");
        }
    }
}
